package com.shop.controller;


import com.shop.aop.AuthAspect;
import com.shop.entity.BulkMerchant;
import com.shop.model.vo.Rsp;
import com.shop.service.BulkGoodsDetailService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 批发明细表
 * 对应当时批发时的商品各个属性
 * gaodo(BulkGoodsDetail)表控制层
 *
 * @author makejava
 * @since 2020-11-26 20:07:24
 */
@Validated
@RestController
@RequestMapping("bulkMerchantDetail")
@AllArgsConstructor
public class BulkGoodsDetailController {
    /**
     * 服务对象
     */
    private final BulkGoodsDetailService bulkGoodsDetailService;

    /**
     * 根据订单获取订单项
     * @param bulkMerchant
     * @return
     */
    @PostMapping("getDetailList")
    public Rsp getDetailList(@RequestBody BulkMerchant bulkMerchant){
        return bulkGoodsDetailService.getDetailList(bulkMerchant);
    }

}
